'use strict';

const Service = require('egg').Service;

class HomeService extends Service {
  async banner() {
    const bannerData = await this.app.mysql.select('banners');
    return bannerData;
  }

  async menu() {
    const menuData = await this.app.mysql.select('quick_menu');
    return menuData;
  }

  async tab() {
    const menuData = await this.app.mysql.select('home_classify');
    return menuData;
  }


  // async banner() {
  //   const user = await this.app.mysql.select('banners');
  //   return user;
  // }

  // async menu() {
  //   const user = await this.app.mysql.select('quick_menu');
  //   return user;
  // }
}

module.exports = HomeService;
